import request from '@/utils/request'

export function savePlatform(params) {
  return request({
    url: '/admin/platform/create',
    method: 'post',
    data: params
  })
}

export function updatePlatform(params) {
  return request({
    url: '/admin/platform/update',
    method: 'post',
    data: params
  })
}

export function findPlatformByPage(params) {
  return request({
    url: '/admin/platform/findByPage',
    method: 'post',
    data: params
  })
}

export function findValidPlatforms(params) {
  return request({
    url: '/admin/platform/findAll',
    method: 'post',
    data: params
  })
}

export function validPlatform(id) {
  return request({
    url: '/admin/platform/valid/' + id,
    method: 'post'
  })
}

export function invalidPlatform(id) {
  return request({
    url: '/admin/platform/invalid/' + id,
    method: 'post'
  })
}

